<%@ page import="java.util.List" %>
<%@ page import="com.opensymphony.xwork2.util.ValueStack" %>
<%@ page import="examinee.ExamineeVar" %>
<%@ page import="utils.Var" %>
<%@ page import="account.AccountUtils" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
  <title></title>
  <link href="../../skin/default/global.css" rel="stylesheet" type="text/css"/>
  <link href="../../skin/default/layout.css" rel="stylesheet" type="text/css"/>
  <style type="text/css">
    .admin-panel .overflow dl {
      padding: 5px 15px;
      font-size: 12px;
      text-align: center
    }

    .admin-panel .overflow dl dt {
      padding: 10px 0;
      color: #000;
      text-align: left;
      margin-top: 3px
    }

    .admin-panel .overflow dl dt.right {
      text-align: right;
    }

    .admin-panel .overflow dl dt.right input {
      width: 110px;
      margin-left: 10px;
      margin-right: 10px;
    }

    .admin-panel .overflow dl dd {
      padding: 3px 3px
    }

    .admin-panel .overflow dl dd input {
      height: 16px;
      margin-bottom: -3px;
      width: 150px
    }

    .admin-panel .overflow dl dd select {
      width: 170px
    }

  </style>
</head>
<%
  if (!AccountUtils.hasRight(session, Var.RIGHT_EXAMINEE_IMPORT | Var.RIGHT_EXAMINEE_MANAGE | Var.RIGHT_EXAMINEE_UPDATE)) throw new Exception("deny!");

  ValueStack vs = (ValueStack) request.getAttribute("struts.valueStack");
  List<String> plist = (List<String>) vs.findValue("plist");
%>
<body class="admin-content admin-panel-body">
<form action="getExaminees.action" target="main" method="get">

<table class="admin-panel" width="100%" height="100%" cellSpacing="0" cellPadding="0">
  <thead>
    <tr>
      <td>
        <span class="round"></span>
        <b>设置查询条件</b>
        <%
          if (AccountUtils.hasRight(session, Var.RIGHT_EXAMINEE_IMPORT)) {
        %>
        <a href="import.jsp" target="main" class="btn"><img src="../../skin/default/excel.gif" />Excel导入</a>
        <%
          }
        %>
      </td>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>
        <div class="overflow">
          <dl>
            <dt class="right">姓名：<input type="text" name="searchInfo.ename" class="normal"/></dt>
            <dt class="right">准考证号：<input type="text" name="searchInfo.zkzh" class="normal"/></dt>
            <dt class="right">身份证号：<input type="text" name="searchInfo.sfzh" class="normal"/></dt>
            <dt>考试日期：</dt>
            <dd>起：<input type="text" name="searchInfo.from" style="width:148px;" onClick="WdatePicker()" readonly="readonly" id="from" class="normal date"/></dd>
            <dd>止：<input type="text" name="searchInfo.to" style="width:148px;" onClick="WdatePicker()" readonly="readonly" id="to" class="normal date"/></dd>
            <dt>驾校：
              <select name="searchInfo.pxjg" style="width:148px;">
                <option value="">全部</option>
                <%
                  for (String p : plist) {
                %>
                <option value="<%=p%>"><%=p%></option>
                <%
                  }
                %>
              </select>
            </dt>

            <dd></dd>
            <dt>成绩：
              <select name="searchInfo.score"style="width:148px;">
                <option value="<%=ExamineeVar.SCORE_ALL%>">全部</option>
                <option value="<%=ExamineeVar.SCORE_PASS%>">通过</option>
                <option value="<%=ExamineeVar.SCORE_NOT_PASS%>">未通过</option>
                <option value="<%=ExamineeVar.SCORE_TESTED%>">已考</option>
                <option value="<%=ExamineeVar.SOCRE_NOT_TEST%>">未考</option>
              </select>
            </dt>
            <dt>次数：
              <select name="searchInfo.testCount" style="width:148px;">
                  <option value="0">不限次数</option>
                  <option value="1">1次</option>
                  <option value="2">2次</option>
                  <option value="3">3次</option>
                  <option value="4">大于3次</option>
              </select>
            </dt>
            <%--<dt>打印查询：--%>
              <%--<select style="width:121px;">--%>
                <%--<option></option>--%>
              <%--</select>--%>
            <%--</dt>--%>
          </dl>
          <div class="bar">
            <button type="submit" class="normal blue">查 询<span></span></button>
          </div>
        </div>
      </td>
    </tr>
  </tbody>
</table>
</form>
<script src="../../common/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="../../common/DatePicker/WdatePicker.js" type="text/javascript"></script>
</body>

</html>